package top.bluesword.bean;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author 李林峰
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class Square extends Figure {
    private Integer side;

    public Square(Integer side) {
        this.side = side;
    }

    @Override
    public FigureTypeEnum getFigureType() {
        return FigureTypeEnum.SQUARE;
    }

}
